<template>
  <div class="main">
    <div class="part">
      <div class="p-title">
        <div class="title">月度结算</div>
      </div>

      <div class="p-cont">
        <el-table :data="tableData" style="width: 100%">
          <el-table-column prop="month" label="月份" />
          <el-table-column prop="man" label="配送方" />
          <el-table-column fixed="right" label="操作" width="150">
            <a
              href="https://wanhuhealth.oss-cn-beijing.aliyuncs.com/%E8%8D%AF%E5%93%81%E9%94%80%E5%94%AE%E6%98%8E%E7%BB%86.xlsx"
              target="_blank"
              download
              style="color: #409eff; text-decoration: underline"
            >
              下载
            </a>
            <!-- <template #default="scope">
              <el-button
                link
                type="primary"
                size="small"
                @click="editRow(scope.row)"
                >下载</el-button
              >
            </template> -->
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onBeforeMount, onMounted, ref } from "vue";

const tableData = ref([
  {
    month: "2023/3/1",
    man: "通用技术中国医药贵州省分公司"
  },
  {
    month: "2023/2/1",
    man: "通用技术中国医药贵州省分公司"
  },
  {
    month: "2023/1/2",
    man: "通用技术中国医药贵州省分公司"
  }
]);

function editRow(row) {}
onBeforeMount(() => {});
onMounted(() => {});
</script>
<style scoped lang="scss"></style>
